<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<form th:action="@{/employee/updateEmployee}" method="post">
    <input type="hidden" name="eid" th:value="${e.getEid()}">
    姓名：<input type="text" name="ename" th:value="${e.getEname()}"/><br/>
    <input type="hidden" name="password" th:value="${e.getPassword()}"/>
    性别：<select name="sex">
    <option value="1" th:selected="${e.getSex()}=='1'">男</option>
    <option value="2" th:selected="${e.getSex()}=='2'">女</option>
</select><br/>
    出生日期:<input type="date" name="birth" th:value="${#dates.format(e.getBirth(),'yyyy-MM-dd')}"><br>
    入职时间:<input type="date" name="jointime" th:value="${#dates.format(e.getJointime(),'yyyy-MM-dd')}"><br>
    学历:<select name="xueli">
    <option value="1" th:selected="${e.getXueli()}=='1'">本科</option>
    <option value="2" th:selected="${e.getXueli()}=='2'">专科</option>
</select><br>
    职务:<select name="pid">
    <option th:each="po : ${post}" th:value="${po.pid}" th:text="${po.pname}" th:selected="${po.getPid()==e.getPid()}"></option>
</select><br>
    住址:<input type="text" name="address" th:value="${e.address}"><br>
    电话:<input type="text" name="phone" th:value="${e.phone}"><br>
    紧急联系人:<input type="text" name="man" th:value="${e.getMan()}"><br>
    部门:<select name="did">
    <option th:each="de : ${department}" th:value="${de.did}" th:text="${de.dname}" th:selected="${de.getDid()==e.getDid()}"></option>
</select><br>
    权限:<select name="quanxian">
    <option value="1" th:selected="${e.quanxian=='1'}">老板</option>
    <option value="2" th:selected="${e.quanxian=='2'}">经理</option>
    <option value="3" th:selected="${e.quanxian=='3'}">普通用户</option>
</select><br>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>